package com.dongdongshop.service;

import com.dongdongshop.pojo.TbItemCat;
import com.dongdongshop.utils.PageBean;

import java.util.List;

public interface ItemService {
    //分页展示数据
    PageBean<TbItemCat> findAll(Long parentId,Integer pageNum, Integer pageSize, String name);

    //获取一级分类
    List<TbItemCat> getOne(Long id);

    //增加分类
    void addItem(TbItemCat itemCat);

    //回显
    TbItemCat editItem(Long id);

    //修改方法
    void updateItem(TbItemCat itemCat);

    //删除方法
    void deleteItem(Long[] ids);
}
